package com.itheima.service.mongo;

import com.itheima.domain.mongo.Movement;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface MovementService {

    // 发布动态
    void saveMovement(Movement movement);
// 查询我的动态
    PageBeanVo findMymovents(Long userId, Integer pageNum, Integer pageSize);

//查询好友动态
    PageBeanVo findFrints(Long userid, Integer pageNum, Integer pageSize);
    //查询推荐动态
    PageBeanVo findRecommendMovement(Long userId, Integer pageNum, Integer pageSize);

    //根据id查询动态
    Movement findByid(ObjectId objectId);
    //查询用户动态
    PageBeanVo findMovementVoByPage(Integer state, Long userId, Integer pageNum, Integer pageSize);
        //修改动态
    void updateState(Movement movement);
}